from api.login_api import LoginApi


def get_headres(mobile="13800000002", password="123456"):
    body = {"mobile": mobile, "password": password}
    resp = LoginApi.login(body)
    token = "Bearer " + resp.json().get("data")
    headres = {"Authorization": token}
    return headres
